package com.itheima.object;

/**
 * @author jiangxun
 * @date 11-14-2024
 */
public class StarTest {
    public static void main(String[] args) {
        // 创建对象的格式：类名 对象名 = new 类名();
        Star star01=new Star();
        star01.name="杨杨";
        star01.age=20;
        star01.gender="女";
        star01.height=175.2;
        star01.weight=50;
        System.out.println(star01.name);
        System.out.println(star01.age);
        System.out.println(star01.gender);
        System.out.println(star01.height);
        System.out.println(star01.weight);

    }
}
